getSpSkeleton = () => {
    var prefabIndex = 0;
    for (var i = 0; i < global.UnityNode.length; i++) {
        var d = global.UnityNode[i];
        if (d.SpSkeleton.Add) {
            var nodeId = d.ID;
            prefabIndex++;
            global.curID++;
            global.finialInfo.push(SpSkeleton(nodeId,d.SpSkeleton));
        }
    }
}
SpSkeleton = (nodeId,data) => {
    var d = {
        "__type__": "sp.Skeleton",
        "_name": "",
        "_objFlags": 0,
        "node": {
          "__id__": nodeId
        },
        "_enabled": true,
        "_materials": [
          {
            "__uuid__": "7afd064b-113f-480e-b793-8817d19f63c3"
          }
        ],
        "paused": false,
        "defaultSkin": "default",
        "defaultAnimation": "animation",
        "_preCacheMode": 0,
        "_cacheMode": 0,
        "loop": data.Loop,
        "premultipliedAlpha": data.PremultipliedAlpha,
        "timeScale": 1,
        "_accTime": 0,
        "_playCount": 0,
        "_frameCache": null,
        "_curFrame": null,
        "_skeletonCache": null,
        "_animationName": "animation",
        "_animationQueue": [],
        "_headAniInfo": null,
        "_playTimes": 0,
        "_isAniComplete": true,
        "_N$skeletonData": {
          "__uuid__": data.SkeletonData
        },
        "_N$_defaultCacheMode": 0,
        "_N$debugSlots": false,
        "_N$debugBones": false,
        "_N$debugMesh": false,
        "_N$useTint": false,
        "_N$enableBatch": false,
        "_id": ""
    }
    if (global.isShowId) d["ID"] = global.curID;
    return d;
}
module.exports = {
    getSpSkeleton,
};